<?php
header("Cache-control: private");
include_once(dirname(__FILE__) . "/php/config.inc.php");

include CHINO_MODPATH.'/config/config.inc.php';

$link	= mysql_connect(DBHOST,DBUSER,DBPASS) or die(mysql_error());
mysql_select_db(DBNAME) or die(mysql_error());
$rs		= mysql_query("select version()");
$row		= mysql_fetch_array($rs);
$mysqlversion	= $row[0];
var_dump($row);
var_dump($row[0]);
var_dump($mysqlversion > '4.1');
var_dump($mysqlversion > '5.0.1');

if($mysqlversion > '4.1') {
	mysql_query("SET character_set_connection=utf8, character_set_results=utf8, character_set_client=binary");
	if($mysqlversion > '5.0.1') {
		mysql_query("SET sql_mode=''");
	}
}

phpinfo();

//array(2) { [0]=>  string(19) "5.0.27-community-nt" ["version()"]=>  string(19) "5.0.27-community-nt" } string(19) "5.0.27-community-nt" bool(true) bool(true)

?>